package com.example.service;

import com.example.domain.User;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

@Path("/users")
public interface IUserService {

    /**
     * 返回指定userIdD的user信息
     */
    @GET
    @Path("/{userId}")
    @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
    User selectUserInfo(@PathParam("userId") Long userId,@QueryParam("name") String name);

}
